<template>
  <div class="table-container">
    <el-table :data="tableData" border v-loading="loading">
      <el-table-column v-for="(item, key) in thead" :prop="item.name" :label="item.label" :key="key" align="center"></el-table-column>
    </el-table>
  </div>
</template>

<script>
export default {
  name: 'sontable',
  props: {
    tableData: Array,
    thead: Array,
    loading: Boolean
  },
  data() {
    return {}
  }
  // mounted() {
  // },
  // methods: {
  // }
}
</script>